
<template>
  <div class="jeepay-m-center" style="margin-top: 5px; margin-left: 20px;">
    <a-steps v-show="(vdata.showStyle == showStyleEnum.step) && !isMobile" :current="vdata.currentStep - 1" type="navigation">
      <a-step title="主体信息" />
      <a-step title="经营信息" />
      <a-step title="结算账户" />
    </a-steps>
    <a-divider v-show="!isMobile" />
    <a-divider v-show="isMobile" class="jeepay-m-divider" orientation="left" style="color: #1A66FF;"><span style="color: #2980FD;">{{ vdata.currentStep }}</span>/{{ vdata.steps.length }} {{ vdata.steps[vdata.currentStep - 1] }}</a-divider>
    <!-- 1. 主体信息  -->
    <a-form
      v-show="vdata.showStyle == showStyleEnum.block || vdata.currentStep == 1"
      ref="stepForm1Ref"
      style="margin-top: 20px;"
      :model="applymentDetailInfo"
      :label-col="{ span: 4 }"
      :wrapper-col="{ span: 8 }"
      :rules="vdata.step1Rules"
    >
      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">基础项</a-divider>

      <a-form-item label="商户类型" name="merchantType">
        <a-radio-group v-model:value="applymentDetailInfo.merchantType" @change="initPersonal">
          <a-radio :value="1">小微商户</a-radio>
          <a-radio :value="2">个体工商户</a-radio>
          <a-radio :value="3">企业</a-radio>
        </a-radio-group>
      </a-form-item>

      <a-form-item label="商户简称" name="mchShortName">
        <a-input v-model:value.trim="applymentDetailInfo.mchShortName" />
        <span class="jeepay-tip-text">(最大长度15，例如：中餐厅)</span>
      </a-form-item>

      <div v-if="applymentDetailInfo.merchantType == '2' || applymentDetailInfo.merchantType == '3'">
        <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">营业执照信息</a-divider>
        <a-form-item label="营业执照照片" name="licenseImg">
          <JeepayUpload v-model:src="applymentDetailInfo.licenseImg" bizType="applyment" ocrType="license" @ocrScan="ocrScanFunc" />
          <span class="jeepay-tip-text">(上传图片自动识别：营业执照编号、商户全称、经营详细地址，识别出来的具体内容商户可自行修改)</span>
        </a-form-item>

        <a-form-item label="营业执照编号" name="licenseNo">
          <a-input v-model:value.trim="applymentDetailInfo.licenseNo" />
        </a-form-item>
      
        <a-form-item label="商户全称" name="mchFullName">
          <a-input v-model:value.trim="applymentDetailInfo.mchFullName" />
          <span class="jeepay-tip-text">(最大长度40，默认显示的营业执照扫描结果，可自行定义名称)</span>
        </a-form-item>
      
        <a-form-item label="营业执照经营地省市县" name="licenseAreaCode">
          <JeepayAreaSelect v-model:value="applymentDetailInfo.licenseAreaCode" />
          <span class="jeepay-tip-text">(此项需手动选择，要保持与【详细地址】中的省市县信息一致)</span>
        </a-form-item>
      
        <a-form-item label="营业执照经营详细地址" name="licenseAddress">
          <a-input v-model:value.trim="applymentDetailInfo.licenseAddress" />
        </a-form-item>
      </div>
      <!-- 法人信息 -->
      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">法定代表人证件</a-divider>
      
      <a-form-item label="法人身份证人像面照片" name="idcard1Img">
        <JeepayUpload v-model:src="applymentDetailInfo.idcard1Img" bizType="applyment" ocrType="idCard" @ocrScan="ocrScanByAccountFunc" />
        <span class="jeepay-tip-text">(上传图片自动识别 身份证名称 身份证号)</span>
      </a-form-item>

      <a-form-item label="法人身份证国徽面照片" name="idcard2Img">
        <JeepayUpload v-model:src="applymentDetailInfo.idcard2Img" bizType="applyment" ocrType="idCard" @ocrScan="ocrScanByAccountFunc" />
        <span class="jeepay-tip-text">(上传图片自动识别 有效期)</span>
      </a-form-item>
      
      <a-form-item label="法人姓名" name="idcardName">
        <a-input v-model:value.trim="applymentDetailInfo.idcardName" />
      </a-form-item>

      <a-form-item label="法人身份证号" name="idcardNo">
        <a-input v-model:value.trim="applymentDetailInfo.idcardNo" />
      </a-form-item>

      <a-form-item label="法人身份证有效期开始日期" name="idcardEffectBegin">
        <a-input v-model:value.trim="applymentDetailInfo.idcardEffectBegin" />
        <span class="jeepay-tip-text">(日期格式为：年-月-日，如“1970-01-01”)</span>
      </a-form-item>
        
      <a-form-item class="jeepay-valid" label="法人身份证有效期结束日期" name="idcardEffectEnd">
        <a-input v-model:value.trim="applymentDetailInfo.idcardEffectEnd" :disabled="applymentDetailInfo.idcardEffectEnd == '长期'" style="width: 150px;margin-right: 10px;" />
        <a-checkbox :checked="applymentDetailInfo.idcardEffectEnd == '长期' " @change="(e) => applymentDetailInfo.idcardEffectEnd = e.target.checked ? '长期' : '' ">长期</a-checkbox>
        <span class="jeepay-tip-text">(如果不选择长期，结算日期格式和开始日期格式相同，证件有效期需大于60天)</span>
      </a-form-item>
    </a-form>

    <!-- 2. 经营信息  -->
    <a-form
      v-show="vdata.showStyle == showStyleEnum.block || vdata.currentStep == 2"
      ref="stepForm2Ref"
      :model="applymentDetailInfo"
      :label-col="{ span: 4 }"
      :wrapper-col="{ span: 8 }"
      :rules="vdata.step2Rules"
    >
      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">门店信息</a-divider>

      <a-form-item label="门店名称" name="shopName">
        <a-input v-model:value.trim="applymentDetailInfo.shopName" />
        <span class="jeepay-tip-text">(商户门头名称，例如：中国大餐厅西直门店)</span>
      </a-form-item>

      <a-form-item label="门头照片" name="storeOuterImg">
        <JeepayUpload v-model:src="applymentDetailInfo.storeOuterImg" bizType="applyment" />
      </a-form-item>

      <a-form-item label="营业场所室内照图片" name="storeInnerImg">
        <JeepayUpload v-model:src="applymentDetailInfo.storeInnerImg" bizType="applyment" />
      </a-form-item>

      <a-form-item label="第二张营业场所室内照图片" name="storeInner2Img">
        <JeepayUpload v-model:src="applymentDetailInfo.storeInner2Img" bizType="applyment" />
      </a-form-item>

      <a-form-item label="商户营业范围" name="mccCode">
        <JeepayHkpayMccSelect v-model:value="applymentDetailInfo.mccCode" />
      </a-form-item>

      <a-form-item label="商户经营地省市县" name="areaCode">
        <JeepayAreaSelect v-model:value="applymentDetailInfo.areaCode" @change="searchAreaFunc" />
      </a-form-item>

      <a-form-item label="商户经营详细地址" name="address">
        <a-input v-model:value.trim="applymentDetailInfo.address" />
      </a-form-item>

      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">联系人信息</a-divider>
      <a-form-item v-if="applymentDetailInfo.merchantType != '1'" label="联系人姓名" name="contactName">
        <a-input v-model:value.trim="applymentDetailInfo.contactName" />
      </a-form-item>

      <a-form-item label="联系人手机号" name="contactPhone">
        <a-input v-model:value.trim="applymentDetailInfo.contactPhone" />
      </a-form-item>
    </a-form>
    

    <!-- 3. 结算账户  -->
    <a-form
      v-show="vdata.showStyle == showStyleEnum.block || vdata.currentStep == 3"
      ref="stepForm3Ref"
      :model="applymentDetailInfo"
      :label-col="{ span: 4 }"
      :wrapper-col="{ span: 8 }"
      :rules="vdata.step3Rules"
    >
      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">账户信息</a-divider>
      <a-form-item label="结算周期" name="settleWay">
        <a-radio-group v-model:value="applymentDetailInfo.settleWay" defaultValue="01" @change="() => emit('itemRender')">
          <a-radio value="01">T1</a-radio>
          <a-radio value="02">D1</a-radio>
          <a-radio value="03">D0</a-radio>
        </a-radio-group>
      </a-form-item>

      <a-form-item label="结算类型" name="settAccountType">
        <a-radio-group v-model:value="applymentDetailInfo.settAccountType" :disabled="applymentDetailInfo.merchantType == '1'" @change="funLegalInfo(applymentDetailInfo.ifSettToLegal)">
          <a-radio value="B">对公</a-radio>
          <a-radio value="C">对私</a-radio>
        </a-radio-group>
      </a-form-item>
    
      <a-form-item label="是否为法人" name="ifSettToLegal">
        <a-radio-group v-model:value="applymentDetailInfo.ifSettToLegal" :disabled="applymentDetailInfo.merchantType == '1'" @change="funLegalInfo(applymentDetailInfo.ifSettToLegal)">
          <a-radio :value="1">是</a-radio>
          <a-radio :value="0">否</a-radio>
        </a-radio-group>
        <br>
        <span class="jeepay-tip-text">(选择【结算类型】和【是否为法人】后会自动回填法人信息)</span>
      </a-form-item>

      <a-form-item v-if="applymentDetailInfo.settAccountType == 'C'" label="银行卡正面照" name="settAccountLicenseImg">
        <JeepayUpload v-model:src="applymentDetailInfo.settAccountLicenseImg" bizType="applyment" ocrType="bankCard" @ocrScan="ocrScanBySettAccountBankCardFunc" />
        <span class="jeepay-tip-text">(上传图片自动识别 银行卡号)</span>
      </a-form-item>

      <a-form-item label="结算账户号" name="settAccountNo">
        <a-input v-model:value.trim="applymentDetailInfo.settAccountNo" />
        <span class="jeepay-tip-text">(对私时传银行卡号，对公时传开户账号)</span>
      </a-form-item>
      
      <a-form-item label="开户行网点省市县" name="settAccountBankBranchAreaCode">
        <JeepayAreaSelect v-model:value="applymentDetailInfo.settAccountBankBranchAreaCode" />
      </a-form-item>

      <a-form-item v-if="applymentDetailInfo.merchantType != '1'" :label="applymentDetailInfo.settAccountType == 'B' ? '对公账户名称' : '持卡人姓名'" name="settAccountName">
        <a-input v-model:value.trim="applymentDetailInfo.settAccountName" />
      </a-form-item> 

      <a-form-item v-if="applymentDetailInfo.settAccountType == 'C'" label="银行预留手机号" name="prePhone">
        <a-input v-model:value.trim="applymentDetailInfo.prePhone" />
      </a-form-item>

      <!-- 结算账户清算行号（对于hkpay来说，和行联号值相同） -->
      <a-form-item label="联行号" name="bankCode">
        <a-input v-model:value.trim="applymentDetailInfo.bankCode" placeholder="联行号" />
        <span><a href="https://www.icvio.cn/" target="_blank">联行号及开户支行名称查询</a></span>
      </a-form-item>

      <a-form-item v-if="applymentDetailInfo.settAccountType == 'B'" label="开户支行名称" name="settAccountBankBranchName">
        <a-input v-model:value.trim="applymentDetailInfo.settAccountBankBranchName" placeholder="开户支行名称" />
        <span class="jeepay-tip-text">(即结算卡开户银行网点名称，例如：中国工商银行股份有限公司北京东铁匠营支行)</span>
      </a-form-item>
      
      <!-- 结算人信息 -->
      <a-divider v-if="applymentDetailInfo.merchantType != '1'" class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">结算人信息</a-divider>
      
      <div v-if="applymentDetailInfo.settAccountType == 'C' && applymentDetailInfo.ifSettToLegal == '0'">
        <a-form-item label="结算人身份证人像面照片" name="settAccountIdcard1Img">
          <JeepayUpload v-model:src="applymentDetailInfo.settAccountIdcard1Img" bizType="applyment" ocrType="idCard" @ocrScan="ocrScanBySettAccountFunc" />
          <span class="jeepay-tip-text">(上传图片自动识别 身份证号)</span>
        </a-form-item>

        <a-form-item label="结算人身份证国徽面照片" name="settAccountIdcard2Img">
          <JeepayUpload v-model:src="applymentDetailInfo.settAccountIdcard2Img" bizType="applyment" ocrType="idCard" />
        </a-form-item>
      </div>
    
      <a-form-item v-if="applymentDetailInfo.merchantType != '1' && applymentDetailInfo.settAccountType == 'C'" label="结算人身份证号" name="settAccountIdcardNo">
        <a-input v-model:value.trim="applymentDetailInfo.settAccountIdcardNo" />
      </a-form-item>
      
      <div v-if="applymentDetailInfo.settAccountType == 'C' && applymentDetailInfo.ifSettToLegal == '0'">
        <a-form-item label="非法人结算授权函图片" name="stlAuthImg">
          <JeepayUpload v-model:src="applymentDetailInfo.stlAuthImg" bizType="applyment" />
        </a-form-item>

        <a-form-item label="法人手持结算授权函合影图片" name="legalHandStlAuthImg">
          <JeepayUpload v-model:src="applymentDetailInfo.legalHandStlAuthImg" bizType="applyment" />
        </a-form-item>
      </div>

      <a-form-item v-if="applymentDetailInfo.settAccountType == 'B'" label="开户申请表/开户许可证照片" name="companyAccountLicenseImg">
        <JeepayUpload v-model:src="applymentDetailInfo.companyAccountLicenseImg" bizType="applyment" />
      </a-form-item>

      
      <!-- 产品费率 -->
      <a-divider class="jeepay-m-divider" orientation="left" style="color: #1A66FF;">产品费率</a-divider>

      <div label="配置费率" name="fee" style="width:100%;">
        <JeepayPaywayRatePanel 
          ref="jeepayPaywayRatePanelRef"
          :configMode="configMode"
          :infoId=" (mchApplymentData.applyId || '') + '_' + mchApplymentData.mchNo" 
          :selectIfCode="mchApplymentData.ifCode"
          onlyRate="true"
        />
      </div>
    </a-form>
    <a-divider />

    <div class="jeepay-btn-box jeepay-m-btn-box" style="margin-top: 50px; margin-bottom: 50px;text-align: center;">
      <a-button v-show="vdata.showStyle == showStyleEnum.step && vdata.currentStep > 1" class="jeepay-m-btn" data-type="inline" type="primary" @click="toPrevStep"><left-circle-outlined /> 上一步 </a-button>
      <a-button v-show="vdata.showStyle == showStyleEnum.step && vdata.currentStep < 3" class="jeepay-m-btn" data-type="inline" type="primary" @click="toNextStep">下一步 <right-circle-outlined /> </a-button>
    </div>
  </div>
</template>

<script setup lang="ts">

import {reactive, getCurrentInstance, defineEmits, inject, ref} from 'vue'
import ruleGenerator from '@/utils/ruleGenerator'
import { $ruipayGetBankList } from '@/api/manage'

const jeepayPaywayRatePanelRef = ref()

// 获取当前实例的代理对象
const { proxy } : any = getCurrentInstance()

const { $infoBox } = getCurrentInstance()!.appContext.config.globalProperties


// 显示类型枚举值
const showStyleEnum = {
  step: 'step',
  block: 'block'
}

// emit： 向父组件进行通讯。 
const emit = defineEmits(['itemRender'])

// 参数注入： 是否手机端
let isMobile : any = inject('isMobile')

// 响应式数据
const vdata : any = reactive({
  showStyle: 'step', // 显示类型： step-分步,  block-整页显示 
  steps: ['主体信息', '经营信息', '结算账户'],
  isTempData: false, // 是否保存草稿
  isvDefaultPaywayFee: {} as any, // 服务商默认费率
  currentStep: 1,
  receiverTableData: [] as any,
  branchBankList:[] as any, // 支行列表
  step1Rules: {
                merchantType: [ ruleGenerator.requiredSelect('商户类型', 'number') ],
                mchShortName: [ ruleGenerator.requiredInput('商户简称') ],
                licenseImg: [ ruleGenerator.requiredUpload('营业执照照片') ],
                licenseNo: [ ruleGenerator.requiredInput('营业执照编号') ],
                mchFullName: [ ruleGenerator.requiredInput('商户全称') ],
                licenseAreaCode: [ ruleGenerator.requiredSelect('营业执照经营地省市县', 'array') ],
                licenseAddress: [ ruleGenerator.requiredInput('营业执照经营详细地址') ],
                idcard1Img: [ ruleGenerator.requiredUpload('法人身份证人像面') ],
                idcard2Img: [ ruleGenerator.requiredUpload('法人身份证国徽面') ],
                idcardName: [ ruleGenerator.requiredInput('法人姓名') ],
                idcardNo: [ ruleGenerator.requiredInput('法人身份证号') ],
                idcardEffectBegin: [ ruleGenerator.requiredInput('法人身份证有效期开始日期') ],
                idcardEffectEnd: [ ruleGenerator.requiredInput('法人身份证有效期结束日期') ]
              },
  step2Rules: {
                shopName: [ ruleGenerator.requiredInput('门店名称') ],
                storeOuterImg: [ ruleGenerator.requiredUpload('门头照片') ],
                storeInnerImg: [ ruleGenerator.requiredUpload('营业场所室内照图片') ],
                storeInner2Img: [ ruleGenerator.requiredUpload('第二张营业场所室内照图片') ],
                mccCode: [ ruleGenerator.requiredSelect('商户营业范围') ],
                areaCode: [ ruleGenerator.requiredSelect('商户经营地省市县', 'array') ],
                address: [ ruleGenerator.requiredInput('商户经营详细地址') ],
                contactName: [ ruleGenerator.requiredInput('联系人姓名') ],
                contactPhone: [ ruleGenerator.requiredInput('联系人手机号') ]
  },
  step3Rules: {
                settleWay: [ ruleGenerator.requiredSelect('结算周期', 'string') ],
                settAccountType: [ ruleGenerator.requiredSelect('结算类型', 'string') ],
                ifSettToLegal: [ ruleGenerator.requiredSelect('是否为法人', 'number') ],
                settAccountLicenseImg: [ ruleGenerator.requiredUpload('银行卡正面照') ],
                settAccountNo: [ ruleGenerator.requiredInput('结算账户号') ],
                settAccountBankBranchAreaCode: [ ruleGenerator.requiredSelect('开户行网点省市县', 'array') ],
                settAccountName: [ ruleGenerator.requiredInput('结算到的对象信息') ],
                prePhone: [ ruleGenerator.requiredInput('银行预留手机号') ],
                bankCode: [ ruleGenerator.requiredInput('联行号') ],
                settAccountBankBranchName: [ ruleGenerator.requiredInput('开户支行名称') ],
                settAccountIdcard1Img: [ ruleGenerator.requiredUpload('结算人身份证人像面照片') ],
                settAccountIdcard2Img: [ ruleGenerator.requiredUpload('结算人身份证国徽面照片') ],
                settAccountIdcardNo: [ ruleGenerator.requiredInput('结算人身份证号码') ],
                stlAuthImg: [ ruleGenerator.requiredUpload('非法人结算授权函图片') ],
                legalHandStlAuthImg: [ ruleGenerator.requiredUpload('法人手持结算授权函合影图片') ],
                companyAccountLicenseImg: [ ruleGenerator.requiredUpload('开户申请表/开户许可证照片') ]
  }
})

// 接收进件参数(包含 商户号， ifCode )
let mchApplymentDataRef : any = inject('mchApplymentData')
let mchApplymentData : any = mchApplymentDataRef.value

// 接收父组件的进件详细参数
let applymentDetailInfoInject : any = inject('applymentDetailInfo')
let applymentDetailInfo : any = applymentDetailInfoInject.value

// 参数注入： 配置方式
let configMode : any = inject('configMode')


// 下一步
function toNextStep() {
  // 验证是否通过
  proxy.$refs['stepForm'+vdata.currentStep+'Ref'].validate().then( () => {
      vdata.currentStep ++
  })
  if (!applymentDetailInfo.settleWay) {
    applymentDetailInfo.settleWay = '01'
  }
}

// 上一步
function toPrevStep(){
  vdata.currentStep --
}

function validateAllForm(step: number){
  return proxy.$refs['stepForm'+step+'Ref'].validate().then( () => {
     if(step >= 3){
      return Promise.resolve()
     }
     return validateAllForm(++step)
     
  })
}

if(applymentDetailInfo.feeData) {
  vdata.receiverTableData = applymentDetailInfo.feeData
}

// 图片识别的回调函数  营业执照
function ocrScanFunc(orcObject){
  if(orcObject){
    if(orcObject.licenseNo){
      applymentDetailInfo.licenseNo = orcObject.licenseNo
    }
    if(orcObject.mchFullName){
      applymentDetailInfo.mchFullName = orcObject.mchFullName
    }
    if(orcObject.licenseAddress){
      applymentDetailInfo.licenseAddress = orcObject.licenseAddress
    }
  }
}

// 识别银行卡信息 
function ocrScanBySettAccountBankCardFunc(orcObject){
  if(orcObject){
     if(orcObject.settAccountNo){
      applymentDetailInfo.settAccountNo = orcObject.settAccountNo
    }
  }
}

// 图片识别的回调函数  法人身份证
function ocrScanByAccountFunc(orcObject){
  if(orcObject){
    if(orcObject.idcardName){
      applymentDetailInfo.idcardName = orcObject.idcardName
    }
    if(orcObject.idcardNo){
      applymentDetailInfo.idcardNo = orcObject.idcardNo
    }
    if(orcObject.idcardEffectBegin){
      applymentDetailInfo.idcardEffectBegin = orcObject.idcardEffectBegin
    }
    if(orcObject.idcardEffectEnd){
      applymentDetailInfo.idcardEffectEnd = orcObject.idcardEffectEnd
    }
  }
}

// 图片识别的回调函数  结算人身份证
function ocrScanBySettAccountFunc(orcObject){
  if(orcObject){    
    if(orcObject.idcardNo){
      applymentDetailInfo.settAccountIdcardNo = orcObject.idcardNo
    }
  }
}

// 点击【保存】的前置事件, 需要返回Promise对象
function saveDataPreCallback(isTemp){

  // 放置费率配置项
  let paywayFeeList = jeepayPaywayRatePanelRef.value.getReqMchRatePaywayFeeList()
  if(typeof(paywayFeeList) != 'object'){
      return Promise.reject()
  }

  // 赋值到对象中
  applymentDetailInfo.paywayFeeList = paywayFeeList


  // 站点信息
  applymentDetailInfo.feeData = vdata.receiverTableData

  // 用于进件列表【进件商户名】的展示
  if(!applymentDetailInfo.mchFullName) {
    applymentDetailInfo.mchFullName = applymentDetailInfo.mchShortName
  }

  // 保存草稿只校验当前步骤数据
  if (isTemp) {
    return Promise.resolve()
  }

  // 验证所有表单
  return validateAllForm(1).then(() => {
    return Promise.resolve()
  }).catch((params: any) => {
    $infoBox.message.error('数据填写不完整， 请检查后提交')
    return Promise.reject()
  })
}

function funLegalInfo(value) {
//  对私 且 法人
if(value == '1'){
  if(applymentDetailInfo.settAccountType == 'C'){
      // 持卡人姓名 
      applymentDetailInfo.settAccountName = applymentDetailInfo.idcardName
    } else if(applymentDetailInfo.settAccountType == 'B'){
      // 对公账户名称
      applymentDetailInfo.settAccountName = applymentDetailInfo.mchFullName 
    } 
    // 持卡人身份证号
    applymentDetailInfo.settAccountIdcardNo = applymentDetailInfo.idcardNo
  } else {
    applymentDetailInfo.settAccountName = ''
    applymentDetailInfo.settAccountIdcardNo = ''
  }
}


// 商户经营地省市县 回调
function searchAreaFunc(value) {
  if (applymentDetailInfo.address) {
    applymentDetailInfo.address = ''
  }
  applymentDetailInfo.address = value[0].label + '' + value[1].label + '' + value[2].label + ''
}

// 初始化小微参数 结算到法人&对私
function initPersonal(){
  if(applymentDetailInfo.merchantType == '1'){
    applymentDetailInfo.ifSettToLegal = 1
    applymentDetailInfo.settAccountType = 'C'
  }else{
    applymentDetailInfo.ifSettToLegal = ''
    applymentDetailInfo.settAccountType = ''
  }
}

defineExpose({ saveDataPreCallback })

</script>

<style lang="less" scoped>
.jeepay-tip-text{
  font-size: 10px; color: rebeccapurple
}
.option-left {
  width: 50%;
  word-wrap: break-word; 
  white-space: normal;
  word-break: break-all;
}
.option-right {
  color: rgb(153, 153, 153);
}
.option-bottom {
  word-wrap: break-word; 
  white-space: normal;
  word-break: break-all;
  color: rgb(153, 153, 153);
}
.jeepay-btn-box {
  margin: 15px -12px !important;
}
.jeepay-btn-box .ant-btn {
  margin: 0 10px;
}
</style>